package com.weiz.designpatterns.observer;

/**
 * 观察者
 */
public class WeiXinObserver implements Observer{

    private String name;

    public WeiXinObserver(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + ": " + message);
    }
}